package cn.uestc.labhms.modules.hms.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.uestc.labhms.common.utils.PageUtils;
import cn.uestc.labhms.common.utils.Query;

import cn.uestc.labhms.modules.hms.dao.ChemRecordDao;
import cn.uestc.labhms.modules.hms.entity.ChemRecordEntity;
import cn.uestc.labhms.modules.hms.service.ChemRecordService;


@Service("chemRecordService")
public class ChemRecordServiceImpl extends ServiceImpl<ChemRecordDao, ChemRecordEntity> implements ChemRecordService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ChemRecordEntity> page = this.page(
                new Query<ChemRecordEntity>().getPage(params),
                new QueryWrapper<ChemRecordEntity>()
        );

        return new PageUtils(page);
    }

}